#pragma target 3.0
void convFunc(
        in float2 coord : TEXCOORD0,
        uniform int d_csize,
        uniform float4 d_sigma2,
        out float4 output : COLOR)
{
    const float x = (float)coord.x - 0.5f - floor((float)d_csize / 2.0f);
    const float y = (float)coord.y - 0.5f - floor((float)d_csize / 2.0f);
//    const float x = floor((float)d_csize / 2.0f);
//    const float y = (float)coord.y;
    const float x2 = (x * x);
    const float y2 = (y * y);
    output.r = exp(-(x2 + y2) / (2.0f * d_sigma2.r));
    output.g = exp(-(x2 + y2) / (2.0f * d_sigma2.g));
    output.b = exp(-(x2 + y2) / (2.0f * d_sigma2.b));
    output.a = exp(-(x2 + y2) / (2.0f * d_sigma2.a));
}
